package com.mi.rof.engineer.action;

import com.mi.rof.engineer.entity.RepairOrderEvents;
import com.mi.rof.engineer.entity.RepairOrderStates;
import lombok.extern.slf4j.Slf4j;
import org.springframework.statemachine.StateContext;
import org.springframework.statemachine.action.Action;
import org.springframework.statemachine.annotation.WithStateMachine;
/**
 * @author zwq
 */
@WithStateMachine
@Slf4j
public class PreviewAction implements Action<RepairOrderStates, RepairOrderEvents> {

    @Override
    public void execute(StateContext<RepairOrderStates, RepairOrderEvents> stateContext) {

        log.info("当前行为动作：{}", stateContext.getMessage().getPayload().getMsg());
    }
}
